package com.dcrzl.shcz.common.entity.sys;

import com.baomidou.mybatisplus.annotation.*;
import com.dcrzl.shcz.common.entity.info.Gov;
import com.dcrzl.shcz.common.entity.info.MiniUserUnit;
import com.dcrzl.shcz.common.utils.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import com.dcrzl.shcz.common.entity.info.GovUnit;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import java.util.List;


/**
 * 小程序用户
 *
 * @author dcrzl
 * @email 1728795786@qq.com
 * @date 2025-01-06 10:10:35
 */
@Data
@TableName("t_mini_user")
@Accessors(chain = true)
public class MiniUser extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    @TableField(value = "true_name")
    private String trueName;
    @TableField(value = "phone")
    private String phone;
    /**
     *
     */
    @TableField(value = "username")
    private String username;
    /**
     *
     */
    @TableField(value = "password")
    private String password;
    /**
     *
     */
    @TableField(value = "status", fill = FieldFill.INSERT)
    private Integer status;
    /**
     *
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     *
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @TableField(exist = false)
    private Collection<Long> govIdList;
    @TableField(exist = false)
    private Collection<Long> govUnitIdList1;
    @TableField(exist = false)
    private Collection<Long> govUnitIdList2;

    @TableField(exist = false)
    private Collection<String> govIdListStr;
    @TableField(exist = false)
    private Collection<String> govUnitIdList1Str;
    @TableField(exist = false)
    private Collection<String> govUnitIdList2Str;

    @TableField(exist = false)
    private Collection<Gov> govList;
    @TableField(exist = false)
    private List<GovUnit> govUnitList1;
    @TableField(exist = false)
    private Collection<GovUnit> govUnitList2;

    @TableField(exist = false)
    private List<MiniUserUnit> miniUserUnitList;

}
